import 'package:flutter/material.dart';

class FractionallySizedBoxDemo extends StatelessWidget {
  const FractionallySizedBoxDemo({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('FractionallySizedBox'),
      ),
      body: FractionallySizedBox(
        // widthFactor: 1.0,
        // heightFactor: 1.0,
        child: Container(
          color: Colors.red,
          child: Center(
            child: Text('data'),
          ),
        ),
      ),
    );
  }
}
